const parsePath = (pathName, path) => {
  let flag = true;
  if (path.indexOf(":") > 0) {
    const nameList = pathName.split("/");
    flag = path.replace(":id", nameList[nameList.length - 1]) === pathName;
  } else {
    flag = pathName === path;
  }
  return flag;
};
export { parsePath };
